//server端 需要npm install redis
//封装成一个方法，暴露接口即可
let {redis} = require("redis");
var client = redis.createClient(6379, "localhost");
client.select(1);
// client.sadd("signature", "abacd");
client.multi()
.SISMEMBER("signature", "abacd")
.exec(function(_, replies){
    console.log("reply length:", replies.length);
    replies.forEach(function(reply, _){
        if (reply.toString() == "1") {
            //订阅MQTT主题 GATEWAY/data 主题
            ledDisplay();
        }
        else {
            console.log("error");
        }

    })
})
client.quit();